package com.kayt.cyberBar.cuser.business.entity.po;

import java.util.List;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.OneToMany;
import javax.persistence.OneToOne;
import javax.persistence.Table;

/**
 * BHandWork entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "b_hand_work")
public class BHandWork implements java.io.Serializable {

	// Fields

	/**
	 * 
	 */
	private static final long serialVersionUID = 6241764311334808553L;
	private Long id;
	private String handWorkCode;
	private String handUserWorkCode;
	private String nextUserWorkCode;
	private String handShiftCode;
	private String handWorkStartTime;
	private String handWorkEndTime;
	private String nextShiftCode;
	private String handWorkType;
	private String inventoryStatus;
	private String handDate;
	private String createTime;
	private String updateTime;
	private String statusCode;
	
	private BHandWorkDetail handWorkDetail;
	private List<BHandWorkInventory> handWorkInventorieList;
	private BHandWorkExam handWorkExam;

	// Constructors

	/** default constructor */
	public BHandWork() {
	}

	/** full constructor */
	public BHandWork(String handWorkCode, String handUserWorkCode,
			String nextUserWorkCode, String handShiftCode,
			String nextShiftCode, String handDate, String createTime,
			String updateTime, String statusCode) {
		this.handWorkCode = handWorkCode;
		this.handUserWorkCode = handUserWorkCode;
		this.nextUserWorkCode = nextUserWorkCode;
		this.handShiftCode = handShiftCode;
		this.nextShiftCode = nextShiftCode;
		this.handDate = handDate;
		this.createTime = createTime;
		this.updateTime = updateTime;
		this.statusCode = statusCode;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "ID", unique = true, nullable = false)
	public Long getId() {
		return this.id;
	}

	public void setId(Long id) {
		this.id = id;
	}
	
	@Column(name = "HAND_WORK_START_TIME", length = 64)
	public String getHandWorkStartTime() {
		return handWorkStartTime;
	}

	public void setHandWorkStartTime(String handWorkStartTime) {
		this.handWorkStartTime = handWorkStartTime;
	}

	@Column(name = "HAND_WORK_END_TIME", length = 64)
	public String getHandWorkEndTime() {
		return handWorkEndTime;
	}

	public void setHandWorkEndTime(String handWorkEndTime) {
		this.handWorkEndTime = handWorkEndTime;
	}

	@Column(name = "HAND_WORK_TYPE", length = 64)
	public String getHandWorkType() {
		return handWorkType;
	}

	public void setHandWorkType(String handWorkType) {
		this.handWorkType = handWorkType;
	}

	@Column(name = "HAND_WORK_CODE", length = 64)
	public String getHandWorkCode() {
		return this.handWorkCode;
	}

	public void setHandWorkCode(String handWorkCode) {
		this.handWorkCode = handWorkCode;
	}

	@Column(name = "HAND_USER_WORK_CODE", length = 64)
	public String getHandUserWorkCode() {
		return this.handUserWorkCode;
	}

	public void setHandUserWorkCode(String handUserWorkCode) {
		this.handUserWorkCode = handUserWorkCode;
	}

	@Column(name = "NEXT_USER_WORK_CODE", length = 64)
	public String getNextUserWorkCode() {
		return this.nextUserWorkCode;
	}

	public void setNextUserWorkCode(String nextUserWorkCode) {
		this.nextUserWorkCode = nextUserWorkCode;
	}

	@Column(name = "HAND_SHIFT_CODE")
	public String getHandShiftCode() {
		return this.handShiftCode;
	}

	public void setHandShiftCode(String handShiftCode) {
		this.handShiftCode = handShiftCode;
	}

	@Column(name = "NEXT_SHIFT_CODE")
	public String getNextShiftCode() {
		return this.nextShiftCode;
	}

	public void setNextShiftCode(String nextShiftCode) {
		this.nextShiftCode = nextShiftCode;
	}

	@Column(name = "HAND_DATE")
	public String getHandDate() {
		return this.handDate;
	}

	public void setHandDate(String handDate) {
		this.handDate = handDate;
	}

	@Column(name = "CREATE_TIME", length = 64)
	public String getCreateTime() {
		return this.createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	@Column(name = "UPDATE_TIME", length = 64)
	public String getUpdateTime() {
		return this.updateTime;
	}

	public void setUpdateTime(String updateTime) {
		this.updateTime = updateTime;
	}

	@Column(name = "STATUS_CODE", length = 64)
	public String getStatusCode() {
		return this.statusCode;
	}

	public void setStatusCode(String statusCode) {
		this.statusCode = statusCode;
	}
	
	@Column(name = "INVENTORY_STATUS", length = 64)
	public String getInventoryStatus() {
		return inventoryStatus;
	}

	public void setInventoryStatus(String inventoryStatus) {
		this.inventoryStatus = inventoryStatus;
	}


}